<div class="header_menu">
    <div class="container">
        <div class="header-nav clearfix">
            <?php echo $this->partial('shop/layout/headerMenu'); ?>
        </div>
    </div>
</div>
</div>

<div class="container breadcrumbs">
    <a href="<?php echo $this->url('shop'); ?>"><?php echo $this->translate('首页'); ?></a>
    <span class="sep">/</span><span><?php echo $this->translate('退换货/售后'); ?></span>
</div>
<div class="container">
    <div class="uc-full-box">
        <div class="row">
            <div class="span4">
                <?php echo $this->partial('shop/partial/home/leftMenu'); ?>
            </div>
            <div class="span16">
                <div class="xm-line-box uc-box">
                    <h3 class="right-more-title">
                        <?php echo $this->translate('退换货/售后'); ?>
                    </h3>
                    <div class="box-hd-more">
                        <div class="span16">
                            <div class="span14 pull-left left-menu-more">
                                <div class="uc-order-list-type">
                                    <a href="javascript:;" class="current"><?php echo $this->translate('售后列表'); ?></a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="box-bd">
                        <?php if ($this->returnGoodsList->getCurrentItemCount() > 0) { ?>
                        <div class="uc-order-list-box">
                            <ul class="uc-order-detail-list">
                                <li class="uc-order-detail-item">
                                    <table class="order-detail-table">
                                        <tbody>
                                        <?php foreach ($this->returnGoodsList AS $goodsKey => $goodsValue) { ?>
                                        <tr>
                                            <td class="column-detail column-l">
                                                <ul class="order-goods-list">
                                                    <li <?php if ($goodsKey == 0) echo 'class="first"'; ?>>
                                                        <a href="javascript:;">
                                                            <img src="<?php echo $this->shopHelper()->baseGoodsImagePath($goodsValue['goodsImage']); ?>" class="goods-thumb">
                                                        </a>
                                                        <a class="goods-name" href="javascript:;"><?php echo $this->escapeHtml($goodsValue['goodsName']); ?></a>
                                                        <span style="display: block;"><?php echo $this->escapeHtml($goodsValue['inSpecGoodsStr']); ?></span>
                                                    </li>
                                                </ul>
                                            </td>
                                            <td class="column-action">
                                                <?php echo $this->translate('类型'); ?>：<?php echo $this->salesHelper()->getOrderGoodsReturnType($goodsValue[0]->getReturnType()); ?><br>
                                                <?php echo $this->translate('状态'); ?>：<?php echo $this->salesHelper()->getOrderGoodsReturnState($goodsValue[0]->getReturnState()); ?>
                                            </td>
                                            <td class="column-action">
                                                <a href="<?php echo $this->url('shop-service', ['action' => 'viewReturnAndChange', 'id' => $goodsValue[0]->getOrderGoodsId()]) ?>" class="btn btn-primary" style="color: #fff;"><?php echo $this->translate('查看详情'); ?></a>
                                            </td>
                                        </tr>
                                        <?php } ?>
                                        </tbody>
                                    </table>
                                </li>
                            </ul>
                        </div>
                            <?php echo $this->paginationControl($this->returnGoodsList, 'Sliding', 'shop/page', ['route' => 'shop-service', 'params' => ['action' => 'returnAndChangeList']]); ?>
                        <?php } else { ?>

                        <?php } ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>